package com.example.demo2.mapper;

import com.example.demo2.entity.*;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrdersDetailMapper {
    @Select("select * from orders_detail where oId=#{oId}")
    public List<OrdersDetail> findOrdersDetailByOId(@Param("oId") Integer oId);

    @Delete("delete from orders_detail where oId=#{oId}")
    public int deleteOrdersDetailByOId(@Param("oId") Integer oId);
}
